/* 
 * File:   call_constructor_base_class.cpp
 * Author: tandaica0612
 *
 * Created on November 23, 2008, 12:28 AM
 */

#include <stdlib.h>
#include <iostream>
using namespace std;
/*
 * 
 */
class A{
public:
    int a;
    A(int a){
        this->a = a;
        cout << a << endl;
    }
};
class B:public A{
public:

    B(int a):A(a){//Cach' goi. thu' nhat' se~ thuc. thi dau` tien
        cout << "This is test" << endl;
        A(a+20);//Cach' goi. thu' 2
    }
};
/*
int main(int argc, char** argv) {
    B b(10);
    return (EXIT_SUCCESS);
}**/
 /*
10
This is test
30
 **/

